package dao;

import entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminMapper {
    int insert(@Param("admin") Admin admin);

    int insertSelective(@Param("admin") Admin admin);

    int insertList(@Param("admins") List<Admin> admins);

    int updateByPrimaryKeySelective(@Param("admin") Admin admin);

    Admin selectAllAdmin();

    Admin selectByUserName();
}
